package org.zachary.agent.domain.aggregate_model.token.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;
import org.zachary.agent.domain.aggregate_model.token.DeviceId;

@Getter
public class TokenGeneratedEvent extends ApplicationEvent {
    private final DeviceId deviceId;
    private final String userId;
    public TokenGeneratedEvent(Object source, String userId, DeviceId deviceId) {
        super(source);
        this.userId = userId;
        this.deviceId = deviceId;
    }
}
